package com.longge;

public class CountSeniors {

    public int countSeniors(String[] details) {

        int count = 0;
        for (String detail : details) {
            String yearOld = detail.substring(11, 13);
            if (Integer.parseInt(yearOld)>60) count++;
        }
        return count;
    }

}
